﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Taobao.Tools2.Domain.EntityFramework.Mappings
{
    public class ExpressCompanyMapping:ModelMapping<ExpressCompany>
    {
        public ExpressCompanyMapping()
            : base()
        {
            Map(d => d.ToTable("kdgs"));
            Property(c => c.Name).HasColumnName("compname");
            Property(c => c.Code).HasColumnName("CODE"); 

            Property(c => c.ID).HasColumnName("id");
            HasKey(c => c.ID);
        }
    }
}
